﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Details.aspx.cs" Inherits="Users_Details" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>个人详细</title>
    <link href="../css/Site.css" rel="stylesheet" type="text/css" />
    <link href="../css/smoothness/jquery-ui-1.8.2.custom.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <!--提供个人扣分 公司扣分-->
    <form id="form1" runat="server">
    <div style="text-align: left; padding: 5px;">
        <fieldset>
            <legend>基本信息</legend>
            <table>
                <tr>
                    <td align="right">
                        姓名：
                    </td>
                    <td>
                        <asp:Label ID="lblUserName" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        单位：
                    </td>
                    <td>
                        <asp:Label ID="lblCompany" runat="server">
                        </asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        性别：
                    </td>
                    <td>
                        <asp:Label ID="lblSex" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        工种：
                    </td>
                    <td>
                        <asp:Label ID="lblUserType" runat="server">
                        </asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        证件号：
                    </td>
                    <td>
                        <asp:Label ID="lblCredential" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        身份证号：
                    </td>
                    <td>
                        <asp:Label ID="lblIDCard" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 目前所剩安全积分：
                    </td>
                    <td>
                        <asp:Label ID="lblCurrentIntegral" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
        </fieldset>
        <fieldset>
            <legend>扣分操作</legend>
            <table>
                <tr>
                    <td align="right">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        员工扣分：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserIntegral" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbCompany" runat="server" Text="是否扣所在公司分数" />
                    </td>
                </tr>
                <tr id="companypanel" style="display: none;">
                    <td align="right">
                        公司扣分：
                    </td>
                    <td>
                        <asp:TextBox ID="txtCompanyIntegral" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        扣分原因：
                    </td>
                    <td>
                        <asp:TextBox ID="txtReason" runat="server"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </fieldset>
        <fieldset>
            <legend>其他操作</legend>
            <table>
                <tr>
                    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td>
                        <asp:CheckBox ID="cbSafe" runat="server" Text="是否经过安全教育" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbfine" runat="server" Text="是否罚款" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbAutoDeduct" runat="server" Text="设置延时累计自动扣分" />
                    </td>
                </tr>
                <tr class="autoDeductPanel" style="display: none;">
                    <td align="right">
                        自动扣分限制时间段(天数)：
                    </td>
                    <td>
                        <asp:TextBox ID="txtAutoDeductPeriod" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr class="autoDeductPanel" style="display: none;">
                    <td align="right">
                        自动扣分分值：
                    </td>
                    <td>
                        <asp:TextBox ID="txtAutoDeductPoints" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                    </td>
                    <td>
                        &nbsp;<asp:Button ID="btnSave" runat="server" Text="提交" OnClick="btnSave_Click" />&nbsp;&nbsp;
                        <asp:Button ID="btnReturn" runat="server" Text="返回列表" OnClick="btnReturn_Click" />
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
    </form>
</body>
<script src="../script/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="../script/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $("#cbCompany").click(function () {
            if ($(this).is(':checked')) {
                $('#companypanel').show();
            } else {
                $('#companypanel').hide();
            }
        });

        $("#cbAutoDeduct").click(function () {
            if ($(this).is(':checked')) {
                $('.autoDeductPanel').show();
            } else {
                $('.autoDeductPanel').hide();
            }
        });

        if ($("#cbAutoDeduct").is(':checked')) {
            $('.autoDeductPanel').show();
        } else {
            $('.autoDeductPanel').hide();
        }
    });

</script>
</html>
